package com.lpf.json.fastjson.StreamApi;

import java.io.FileReader;
import java.io.IOException;

import com.alibaba.fastjson.JSONReader;

public class TestHugeObjectDeserialize {

	public static void main(String[] args) throws IOException {
		// 读入上面输出的文件
		JSONReader reader = new JSONReader(new FileReader("hugeObject.com.lpf.json"));
		reader.startObject();
		while (reader.hasNext()) {
			String key = reader.readString();
			VO vo = reader.readObject(VO.class);
			System.out.println(key + "：" + vo);
		}
		reader.endObject();
		reader.close();
	}

}
